import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import DetectPage from '../components/DetectPage.vue'
import EstimatePage from '../components/EstimatePage.vue'
import CollectPage from '../components/CollectPage.vue'
import LoadBalance from '../components/LoadBalance.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'HomeView',
      component: HomeView,
      children:[
        {
          path: '/CollectPage',
          name: 'CollectPage',
          component: CollectPage
        },
        {
          path: '/DetectPage',
          name: 'DetectPage',
          component: DetectPage
        },
        {
          path: '/EstimatePage',
          name: 'EstimatePage',
          component: EstimatePage
        },{
          path: '/LoadBalance',
          name: 'LoadBalance',
          component: LoadBalance
        }
      ]
    }
    
  ]
})

export default router
